#ifndef REGFORM_H
#define REGFORM_H
#include <QSqlQueryModel>
#include <QDialog>

namespace Ui {
class regForm;
}

class regForm : public QDialog
{
    Q_OBJECT
    
public:
    explicit regForm(QWidget *parent = 0);
    ~regForm();
    void getFaculty();
    
private:
    Ui::regForm *ui;
    QSqlQueryModel *groupModel;
    QSqlQueryModel *facultyModel;

protected:
    int getIdFaculty(const QString &facName);
    int getIdGroup(const QString &groupName);

public slots:
    void addUser();
    void getGroup(QString facName);
};

#endif // REGFORM_H
